package com.webbietek.dataqueryable;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Represents a Database Queryable
 * @author Ryan Boone
 *
 */
public class DataQueryable implements Queryable {

	private List<String> fields;
	private HashMap<String,String> values;
	private String database;
	private String table;
	
	/**
	 * 
	 */
	public DataQueryable(){
		values = new HashMap<String,String>();
		fields = new ArrayList<String>();
	}
	
	@Override
	public HashMap<String,String> getValues() {
		return values;
	}

	@Override
	public String getTable() {
		return table;
	}

	@Override
	public void setTable(String t) {
		table = t;
	}

	@Override
	public String getDatabase() {
		return database;
	}

	@Override
	public void setDatabase(String db) {
		database = db;
	}

	@Override
	public String getQuery() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getQuery(String database, String table, String criteria,
			String value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void addField(String table, String fieldName) {
		String key = table + "." + fieldName;
		fields.add(key);
	}

	@Override
	public List<String> getFields() {
		return fields;
	}

	@Override
	public void addValue(String table, String fieldName, String value) {
		// TODO Auto-generated method stub
		
	}

}
